package guowei.guliproduct.product.feign;

import guowei.common.to.BoundsTo;

import guowei.common.to.SkusToCommon;
import guowei.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("guliDiscount")
public interface DiscountFeign {



    @RequestMapping("/discount/skuladder/saveSkusTo")
    R saveLadder(@RequestBody SkusToCommon skus1);

    /**
     * @RequestBody注解将我们的BoundTo实体类转为json格式发送出去，
     * 在guliDiscount的controller方法里被同为@RequestBody注解标注接收并转为实体类
     * @param boundsTo
     */
    @RequestMapping("/discount/spubounds/save")
    R saveBounds(@RequestBody BoundsTo boundsTo);

    @RequestMapping("/discount/skufullreduction/saveRelation")
    R saveReduction(@RequestBody SkusToCommon skus2);

    @RequestMapping("/discount/memberprice/saveMembers")
    R saveMembers(@RequestBody SkusToCommon skus2);
}
